package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
    * 审批类型表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "approval_type")
public class ApprovalType {
    /**
     * 主键ID
     */
    @TableId(value = "type_id", type = IdType.INPUT)
    private Integer typeId;

    /**
     * 审批类型名称，如请假、报销等
     */
    @TableField(value = "type_name")
    private String typeName;

    /**
     * 类型表名称，根据审批类型选择表
     */
    @TableField(value = "`table_name`")
    private String tableName;
}